﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.Master" AutoEventWireup="true" CodeBehind="ReporteProductosVendidos.aspx.cs" Inherits="SalaDeEnsayo.WebApplication.ReporteProductosVendidos" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 793px;
        }
        .style2
        {
            width: 604px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMaster" runat="server">
        <asp:Panel ID="pnlGrupos" runat="server" 
            GroupingText="Reporte de Salas Reservadas">
        <div style="height:400px; width:85%; margin-left:0px;">
            <div>
                <table class="detalle" style="float:left; margin-left:50px;">
                    <tr>
                       
                        <td class="style1">
                            <div class="detalle2" style="width:545px; float:left; margin-top:10px;">
                                <asp:Label ID="Label2" runat="server" Text="Sala: "></asp:Label>
                                <asp:DropDownList ID="ddlSalas" runat="server">
                                </asp:DropDownList>
                                <%--<input id="btnAgregar" type="button" value="Agregar" onclick="Populate();"/>--%>
                                <asp:Label ID="Label3" runat="server" Text="Grupo: "></asp:Label>
                                <asp:DropDownList ID="ddlGrupos" runat="server">
                                </asp:DropDownList>
                                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
                            </div>
                            <div class="detalle2" style="width:545px; float:left; margin-top:10px;">
                               
                                <asp:Label ID="Label4" runat="server" Text="Hora Entrada: "></asp:Label>
                               
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="calendar" runat="server" TargetControlID="TextBox2">
                                </cc1:CalendarExtender>
                                
                                <asp:Label ID="Label5" runat="server" Text="Horario Salida"></asp:Label>
                                
                                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox3">
                                </cc1:CalendarExtender>
                               
                                <br />                               
                            </div>
                            <asp:GridView ID="grdReporte1" runat="server" AllowPaging="True" 
                                AlternatingRowStyle-CssClass="alt" AutoGenerateColumns="False" CellPadding="3" 
                                CssClass="mGrid" DataKeyNames="Id" HeaderStyle-ForeColor="White" 
                                HeaderStyle-HorizontalAlign="Center" PagerSettings-Mode="NumericFirstLast" 
                                PagerStyle-CssClass="pgr" RowStyle-VerticalAlign="Middle" Width="700px">
                                <PagerStyle CssClass="pgr" />
                                <EmptyDataTemplate>
                                    No se encontraron datos de Grupos.
                                </EmptyDataTemplate>
                                <PagerSettings Mode="NumericFirstLast" />
                                <RowStyle VerticalAlign="Middle" />
                                <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="Sala" 
                                        ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80" 
                                        SortExpression="Id" >
                                        <ItemStyle HorizontalAlign="Right" Width="80px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Nombre_grupo" HeaderText="Grupo" 
                                        ItemStyle-Width="300" SortExpression="Nombre" >
                                        <ItemStyle Width="300px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Estilo" HeaderText="Horario Entrada" ItemStyle-Width="300" 
                                        SortExpression="Estilo" >
                                        <ItemStyle Width="300px" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="Horario Salida" />
                                    <asp:BoundField HeaderText="Día Reserva" />
                                </Columns>
                                <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                <AlternatingRowStyle CssClass="alt" />
                            </asp:GridView>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>    
                    
                </table>
            </div>
            <div style="float:left;">
            </div>
        </div>
    </asp:Panel>
    
            <asp:Panel ID="Panel1" runat="server" 
            GroupingText="Reporte de Productos Vendidos">
        <div style="height:400px; width:85%; margin-left:0px;">
            <div>
                <table class="detalle" style="float:left; margin-left:50px;">
                    <tr>
                       
                        <td class="style1">
                            <div class="detalle2" style="width:545px; float:left; margin-top:10px;">
                                <asp:Label ID="Label1" runat="server" Text="Tipo Producto: "></asp:Label>
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                </asp:DropDownList>
                                <%--<input id="btnAgregar" type="button" value="Agregar" onclick="Populate();"/>--%>
                                <asp:Label ID="Label6" runat="server" Text="Producto: "></asp:Label>
                                <asp:DropDownList ID="DropDownList2" runat="server">
                                </asp:DropDownList>
                                <asp:Button ID="Button1" runat="server" Text="Buscar" />
                            </div>
                            <div class="detalle2" style="width:545px; float:left; margin-top:10px;">
                               
                                <asp:Label ID="Label7" runat="server" Text="Fecha Desde"></asp:Label>
                               
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBox2">
                                </cc1:CalendarExtender>
                                
                                <asp:Label ID="Label8" runat="server" Text="Fecha Hasta:"></asp:Label>
                                
                                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBox3">
                                </cc1:CalendarExtender>
                               
                                <br />
                               
                            </div>
         <asp:GridView ID="grdReporte2" runat="server" HeaderStyle-HorizontalAlign="Center" 
                CellPadding="3" AutoGenerateColumns="False"
                CssClass="mGrid" PagerStyle-CssClass="pgr"
                DataKeyNames="Id" AllowPaging="True" 
                PagerSettings-Mode="NumericFirstLast"
                RowStyle-VerticalAlign="Middle" HeaderStyle-ForeColor="White"
                AlternatingRowStyle-CssClass="alt"
                Width="700px">
                <PagerStyle CssClass="pgr" />
                <EmptyDataTemplate>No se encontraron datos de Grupos.</EmptyDataTemplate>
                <PagerSettings Mode="NumericFirstLast" />
                <RowStyle VerticalAlign="Middle" />
                <Columns>
                    <asp:BoundField ItemStyle-Width="80" HeaderText="Tipo Producto" DataField="Id" SortExpression="Id"
                        ItemStyle-HorizontalAlign="Right" >
                        <ItemStyle HorizontalAlign="Right" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="300" HeaderText="Producto" 
                        DataField="Nombre_grupo" SortExpression="Nombre">
                        <ItemStyle Width="300px" />
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="300" HeaderText="Cantidad Vendida" 
                        DataField="Estilo" SortExpression="Estilo">
                        <ItemStyle Width="300px" />
                    </asp:BoundField>
                </Columns>
                <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                <AlternatingRowStyle CssClass="alt" />
            </asp:GridView>                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>    
                    
                </table>
            </div>
            <div style="float:left;">
            </div>
        </div>
    </asp:Panel>
    
                <asp:Panel ID="Panel2" runat="server" 
            GroupingText="Reporte de Recaudación Reservada">
        <div style="height:400px; width:85%; margin-left:0px;">
            <div>
                <table class="detalle" style="float:left; margin-left:50px;">
                    <tr>
                       
                        <td class="style2">
                            <div class="detalle2" 
                                style="width:545px; float:left; margin-top:10px; height: 33px;">
                               
                                <asp:Label ID="Label11" runat="server" Text="Fecha Desde"></asp:Label>
                               
                                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="TextBox2">
                                </cc1:CalendarExtender>
                                
                                <asp:Label ID="Label12" runat="server" Text="Fecha Hasta:"></asp:Label>
                                
                                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="TextBox3">
                                </cc1:CalendarExtender>
                               
                                <br />
                               
                            </div>
         <asp:GridView ID="GridView1" runat="server" HeaderStyle-HorizontalAlign="Center" 
                CellPadding="3" AutoGenerateColumns="False"
                CssClass="mGrid" PagerStyle-CssClass="pgr"
                DataKeyNames="Id" AllowPaging="True" 
                PagerSettings-Mode="NumericFirstLast"
                RowStyle-VerticalAlign="Middle" HeaderStyle-ForeColor="White"
                AlternatingRowStyle-CssClass="alt"
                Width="466px">
                <PagerStyle CssClass="pgr" />
                <EmptyDataTemplate>No se encontraron datos de Grupos.</EmptyDataTemplate>
                <PagerSettings Mode="NumericFirstLast" />
                <RowStyle VerticalAlign="Middle" />
                <Columns>
                    <asp:BoundField ItemStyle-Width="80" HeaderText="Sala" DataField="Id" SortExpression="Id"
                        ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle HorizontalAlign="Center" Width="300px" />
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="300" HeaderText="Recaudación" 
                        DataField="Nombre_grupo" SortExpression="Nombre">
                        <ItemStyle Width="80px" />
                    </asp:BoundField>
                </Columns>
                <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                <AlternatingRowStyle CssClass="alt" />
            </asp:GridView>                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>    
                    
                </table>
            </div>
            <div style="float:left;">
            </div>
        </div>
    </asp:Panel>
    <%--<script type="text/javascript" language="javascript">
        function Populate() {
            {
                //document.getElementById('<%=txtNombre.ClientID%>').value = "Hi";
                //document.getElementById("<%=txtTipoDescapacidad.ClientID%>").focus();
                //cuil.disabled = true;
                //cuil.style.backgroundColor = '#f4f4f4';
                //cuil.disabled = false;
                //cuil.style.backgroundColor = '#fff';
                document.getElementById('<%=btnGuardar.ClientID %>').style.display = 'block';
            }
        }
    </script>--%>
</asp:Content>
